package net.sql.bean;

/**
 * 根据值的类型获取基本类型和基本类型class对象
 * 
 * @author 李岩飞
 * @email eliyanfei@126.com
 * @date 2018年7月24日下午3:26:42
 */
public class SqlFieldType {
	public String baseType;
	public Class<?> baseClass;

	public SqlFieldType(String fileType) {
		switch (fileType) {
		case "Integer":
			baseType = "int";
			baseClass = int.class;
			break;
		case "Double":
			baseType = "double";
			baseClass = double.class;
			break;
		case "Float":
			baseType = "float";
			baseClass = float.class;
			break;
		case "Short":
			baseType = "short";
			baseClass = short.class;
			break;
		case "Byte":
			baseType = "byte";
			baseClass = byte.class;
			break;
		case "Long":
			baseType = "long";
			baseClass = long.class;
			break;
		case "String":
			baseType = "String";
			baseClass = String.class;
			break;
		default:
			baseType = "Object";
			baseClass = Object.class;
		}
	}

}